<!--
 * @页面名称:综合统计
 * @描述: 
 * @作者: 
 * @Date:
-->
<template>
  <div class="card statistics">
    <stable :columns="tableSetting.columns" :data="tableSetting.data"></stable>
  </div>
</template>

<script setup lang="ts">
import { ref, reactive, onMounted } from "vue";
import useCurrentInstance from "@/utils/useCurrentInstance";

const { proxy } = useCurrentInstance();
// 表格配置
const tableSetting = reactive({
  columns: [
    { title: "状态", sortable: true, field: "Status" },
    { title: "门类名称", sortable: true, field: "OCName" },
    { title: "案卷数量", sortable: true, field: "FilesNumber" },
    { title: "文件数量", sortable: true, field: "FileNumber" },
    { title: "页数", sortable: true, field: "PagesNumber" },
    { title: "全文件数", sortable: true, field: "FullTextUnit" },
    { title: "全文容量", sortable: true, field: "FullTextCapacitys" }
  ],
  data: []
});
// 获取表格数据
const getTableData = () => {
  proxy.$vueAxios.get("DynamicStatistics/GetSynthesisStatistics").then((res: any) => {
    tableSetting.data = res.List;
  });
};
onMounted(() => {
  getTableData();
});
</script>

<style scoped lang="scss">
.statistics {
  height: 100%;
}
</style>
